<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="UTF-8" isELIgnored="false" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<html>
<head>
    <title>iworkh springmvc</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>


<h1>iworkh springmvc study</h1>

<a href="https://www.iworkh.com" target="_blank">iworkh-IT知识库</a>
<br/>

<h2>1.自定义类型转化器</h2>
<form action="/springmvc/testConvertObject" method="post">
    student:<input type="text" name="student" value="iworkh-xx;28;112455675"/>
    <input type="submit" value="testConvertObject">
</form>


<h2>2.格式化和验证</h2>

<form:form action="/springmvc/testAdd" method="post" modelAttribute="student">
<form:errors path="*"/>
<br/>
name:<form:input path="name"></form:input><form:errors path="name"/>
<br/>
age:<form:input path="age"/><form:errors path="age"/>
<br/>
birthday:<form:input path="birthday"/><form:errors path="birthday"/>
<br/>
phone:<form:input path="phone"/><form:errors path="phone"/>
<br/>
money:<form:input path="money"/><form:errors path="money"/>
<br/>
<input type="submit" value="testAdd">
</form:form>

<br/>
${requestScope.student}


</body>
</html>